import { uploadType } from '@/utils/util'

// 变更数据表格配置
export const changeDataTableConfig = (type) => {
	let str = {
		dp_service_object: [
			{ label: '户籍地区', prop: 'crAreaName' },
			{ label: '证件号码', prop: 'idCard' },
			{ label: '姓名', prop: 'name' },
			{
				label: '操作',
				prop: 'menu',
				fixed: 'right',
			},
		],
	}
	return str[type]
}

export const rechangeConfig = {
	label: '变更材料',
	prop: 'dp_service_object_other',
	inline: false,
	showBtn: true,
	labelPosition: 'top',
	submitBtnText: '确认并提交',
	backBtnText: '返回修改内容',
	column: [
		{
			prop: 'content',
			type: 'input',
			span: 24,
		},
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '变更材料',
			span: 24,
		},
		{
			label: '情况说明',
			prop: 'changeDescription',
			type: 'textarea',
			maxlength: '140',
			rows: 2,
			showWordLimit: true,
			span: 24,
		},
		{
			label: '证明材料',
			prop: 'changeMaterials',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 4,
			multiple: true,
			span: 24,
		},
	],
}
export const rechangeFormConfig = {
	label: '变更材料',
	prop: 'dp_service_object_other',
	inline: false,
	showBtn: true,
	labelPosition: 'left',
	submitBtnText: '确认并提交',
	backBtnText: '返回修改内容',
	column: [
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '变更材料',
			span: 24,
		},
		{
			label: '情况说明',
			prop: 'changeDescription',
			type: 'textarea',
			maxlength: '140',
			rows: 2,
			showWordLimit: true,
			span: 24,
		},
		{
			label: '证明材料',
			prop: 'changeMaterials',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 4,
			multiple: true,
			span: 24,
		},
	],
}
